package org.example.backend.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.backend.entity.Tags;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
* @author wangy
* @description 针对表【tags(标签表)】的数据库操作Mapper
* @createDate 2025-04-06 20:09:06
* @Entity org.example.backend.entity.Tags
*/
public interface TagsMapper extends BaseMapper<Tags> {
    /**
     * 查询热门标签
     * @param limit 限制返回数量
     * @return 热门标签列表
     */
    List<Map<String, Object>> findPopularTags(@Param("limit") Integer limit);

}




